//$(document).on('pagebeforeshow', '[data-role="page"]', function(){        
//    $( document ).on( "swipeleft swiperight",'[data-role="page"]', function( e ) {  
//        console.log("testing");
//        if ($.mobile.activePage.find('.panel').hasClass('ui-panel-closed') &&  e.type === "swiperight") { 
//            $( "#panel").panel( "open" );    
//        }        
//    });
//});

$(document).ready(function() {
    $("#owl-demo").owlCarousel({
        navigation : false, // Show next and prev buttons
        slideSpeed : 300,
        paginationSpeed : 400,
        singleItem:true
    }); 
    console.log($("#owl-demo"));
    
});


$( document ).on( "pageinit", function() {
    $( document ).on( "swipeleft swiperight", function( e ) {
        if ( $.mobile.activePage.jqmData( "panel" ) !== "open" ) {
            $("#panel").panel();
             if ( e.type === "swiperight" ) {
                $( "#panel" ).panel( "open" );
            }
        }
    });
});


	

